<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="../assets/css/font-awesome.min.css" />
  <!--[if IE 7]>
  <link rel="stylesheet" href="../assets/css/font-awesome-ie7.min.css"/>
  <![endif]-->
  <link rel="stylesheet" href="../assets/css/jquery-ui-1.10.3.full.min.css">
  <link rel="stylesheet" href="../assets/css/ace.min.css" />
  <link rel="stylesheet" href="../css/style.css"/>
<title>添加文章</title>
</head>

<body>

<div class="page-content">
 <!--用户管理-->
 <div class="user_Manager_style">
 <form id="form1" name="form1" method="post" action="">
  <div class="Manager_style add_user_info">
    <div class="title_name">添加文章</div>
     <button class="btn btn-primary" type="button" id="Add_user_btn">添加文章</button>
     <div id="Add_user_style" style="display:none">
    <div class="add_user_style clearfix">
<!--    <div class="reset_style"><input name="reset" type="reset" value="重置" /class="btn btn-warning"> </div>-->
     <ul class="clearfix">
      <li><label class="label_name">文章编号</label> <input name="文章编号" type="text"  class="" id="id1"/><i style="color:#F60; ">*</i></li>
      <li><label class="label_name">文章名称</label><input name="文章名称" type="text"  class="" id="name"/><i style="color:#F60; ">*</i></li>
      <li><label class="label_name">文章类型</label><input name="文章类型" type="text"  class="" id="type1"/><i style="color:#F60; ">*</i></li>
      <li><label class="label_name">发布人编号</label><input name="发布人编号" type="text"  class="" id="id2"/><i style="color:#F60; ">*</i></li>
      <li><label class="label_name">预览照片</label><input name="预览照片" type="text"  class="" id="photo"/><i style="color:#F60; ">*</i></li>
      <li><label class="label_name">发布时间</label><input name="发布时间" type="text"  class="" id="time"/><i style="color:#F60; ">*</i></li>
     </ul>
     <div id="hao"></div>
    </div>
    </div>
     </form>
      <div class="Manager_style">
    <div class="title_name">文章列表</div>
    <div class="Role_list">
     <table id="Role_list" cellpadding="0" cellspacing="0" class="table table-striped table-bordered table-hover">
      <thead>
       <tr>
		   <th width="70">文章编号</th><th>文章名称</th>
		   <th width="5%">文章类型</th><th>发布人编号</th>
		   <th>预览照片</th><th>发布时间</th>
		   <th width="10%">操作</th>
	   </tr>
      </thead>
      <tbody>
       <tr>
       <td width="60">1</td>
	     <td></td>
       <td width="5%"></td><td></td>
       <td></td><td></td>
       <td class="User_Action_btn">
        <button  type="button" class="btn btn-primary ">修改</button>
        <button  type="button" class="btn btn-warning">删除</button>
        </td>
        </tr>
        <tr>
       <td width="60">2</td>
       <td></td>
       <td width="5%"></td><td></td>
       <td></td><td></td>
       <td class="User_Action_btn">
        <button  type="button" class="btn btn-primary ">修改</button>
        <button  type="button" class="btn btn-warning">删除</button>
        </td>
        </tr>
      </tbody>
     </table>
    </div>
  </div>
 </div>
 </div>
<script src="../assets/js/jquery.min.js"></script>
    <script type="text/javascript">
        window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
    </script>
	<script type="text/javascript">
        if("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
    </script>
	<script src="../assets/js/bootstrap.min.js"></script>
 <script type="text/javascript" src="../assets/layer/layer.js"></script>
<script type="text/javascript">
function hide1(){
document.getElementById('ycxz').style.display='';
document.getElementById('gys_name').style.display='none';
}
function display1(){
document.getElementById('ycxz').style.display='none';
document.getElementById('gys_name').style.display='';
}
/***判断用户添加文本**/
 $('#Add_user_btn').on('click', function(){
	   layer.open({
        type: 1,
        title: '添加用户',
		maxmin: true,
		shadeClose: true, //点击遮罩关闭层
        area : ['860px' , '400px'],
        content:$('#Add_user_style'),
		btn: ['添加','取消'],
	    yes: function(index, layero){
		  if ($("#name").val()==""){
			  layer.alert('登录文章名不能为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }
		   if ($("#name").val()==""){
			  layer.alert('文章名称为空!',{
              title: '提示框',
				icon:0,

			 });
			return false;
          }

	     else{
			  layer.alert('添加成功！',{
               title: '提示框',
			icon:1,
			  });
			  layer.close(index);
		  }
     }
    })
});
</script>
</body>
</html>
